<html lang="zh-cmn-Hans">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="/bootstrap-4.0.0-dist/css/bootstrap.min.css">

    <title>为要素配置颜色</title>
</head>

<body>

    <div class="">欢迎收看《小马技术视频》</div>
    <div class="bg-primary text-white">欢迎收看《小马技术视频》</div>
    <div class="bg-secondary text-white">欢迎收看《小马技术视频》</div>
    <div class="bg-success text-white">欢迎收看《小马技术视频》</div>
    <div class="bg-warning text-dark">欢迎收看《小马技术视频》</div>
    <div class="bg-light text-dark">欢迎收看《小马技术视频》</div>

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="/bootstrap-4.0.0-dist/others/jquery-3.2.1.slim.min.js"></script>
    <script src="/bootstrap-4.0.0-dist/others/popper-1.12.9.min.js"></script>
    <script src="/bootstrap-4.0.0-dist/js/bootstrap.min.js"></script>
</body>

</html>